#include "systemtools.h"
#include "gamepage.h"
#include <QApplication>
#include "mymedia.h"
#include "aboutpage.h"
#include "helppage.h"

SystemTools::SystemTools(QObject *parent) : QObject(parent)
{

}

void SystemTools::quitApp()
{
    //停止背景音乐
    MyMedia::getObject()->stop();
    //关闭所有界面
    AboutPage::getObject()->hide();
    HelpPage::getObject()->hide();
    GamePage::getObject()->hide();
    //退出程序
    QApplication::quit();
}
